package com.mrjy.share.dao;

import java.util.List;

import com.mrjy.common.entity.ShareMemberInfo;

public interface IShareMemberDao {	
	public int insert(ShareMemberInfo sm);
	
	public int updateSettleMentStatus(ShareMemberInfo sm);
	
	public int updateById(ShareMemberInfo sm);
	
	public List<ShareMemberInfo> listShareMemberInfo(ShareMemberInfo sm);
	
	public int countShareMemberInfo(ShareMemberInfo sm);
	
	//查询一级分销名单
	public List<ShareMemberInfo> listShareUserInfo(ShareMemberInfo sm);
	
	//查询一级和二级分销名单
	public List<ShareMemberInfo> listShareUserInfo2();
	
	public int  countShareMemberByUserId(int userId);


	public int countShareMemberByUser(ShareMemberInfo sa);

	public List<ShareMemberInfo> listShareMembersByUserId(ShareMemberInfo sa);

	public List<ShareMemberInfo> queryListBySharecode(ShareMemberInfo sa);

	public int countShareMemberByShareCode(ShareMemberInfo sa);
	//通过userId 查询分享码
	public ShareMemberInfo queryShareCodeByUserId(Integer userId);

}
